package com.fc.advbox.dao;

import com.alibaba.fastjson.JSONObject;
import com.fc.advbox.dto.report.EquipmentRegion;
import com.fc.advbox.entity.EquipmentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by E7450 on 2018/6/21.
 */
public interface EquipmentDao extends BaseDao<EquipmentEntity> {
    void updateStatus(Map<String, Object> params);

    EquipmentEntity queryByCode(String code);

    List<String> queryCity();

    void updateStatusBatch(@Param("status") String status,
                           @Param("ids") List<Long> ids);

    void updateStatusAndRentDateBatch(@Param("status") String status,
                                      @Param("rentStartDate") Date rentStartDate,
                                      @Param("rentEndDate") Date rentEndDate,
                                      @Param("ids") List<Long> ids);

    List<EquipmentEntity> queryEquipmentListByContractId(Map<String, Object> map);

    List<EquipmentRegion> queryEquipmentRegionReport(JSONObject params);
}
